Method for manufacturing a motor having a control circuit board

ABSTRACT

A control circuit board is received in a circuit board receiving case without being directly joined to the circuit board receiving case and has a circuit board side connector. The circuit board side connector is installed to a main body side connector of a gear housing in an installation direction parallel to a rotatable shaft of the motor main body to supply electric power to the motor main body through the main body side connector. A pin main body of a fixing pin is received into a fixing through hole of the control circuit board through a pin receiving through hole of the gear housing in a direction perpendicular to the installation direction of the circuit board side connector.

CROSS REFERENCE TO RELATED APPLICATION

This application is a division of application Ser. No. 10/827,244 filed on Apr. 20, 2004, now U.S. Pat. No. 6,924,573 which is based on and incorporates herein by reference Japanese Patent Application No. 2003-122923 filed on Apr. 25, 2003.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a motor that includes a motor main body, a speed reducing arrangement and a control device, which controls rotation of the motor main body and which is externally connected to the speed reducing arrangement that is, in turn, connected to the motor main body.

2. Description of Related Art

European Patent No. 0538495 B1 discloses such a motor. In the disclosed motor, a main body (a commutator motor) and a speed reducing arrangement (a transmission) are integrally assembled. A control device (an electronic unit) is externally connected to the speed reducing arrangement. The control device has a control circuit board, which includes a control circuit and is received in a circuit board receiving case (an electronic box). Then, the control device, which includes the control circuit board received in the circuit board receiving case, is installed to a housing (a transmission housing or a gear housing) of the speed reducing arrangement. At this time, a connector provided in the housing of the speed reducing arrangement is inserted into the circuit board receiving case and is connected to a connector provided in the control circuit board received in the circuit board receiving case. Thus, the control device is electrically connected to the motor main body and the speed reducing arrangement.

However, in the motor disclosed in European Patent No. 0538495 B1, the connector of the speed reducing arrangement is connected to the connector of the control circuit board in the circuit board receiving case, so that it is difficult to visually check the connection between these connectors.

To address the above disadvantage, the inventors of the present application have proposed to separately install the control circuit board and the circuit board receiving case to the housing of the speed reducing arrangement. More specifically, the connector of the control circuit board is connected to the connector of the housing of the speed reducing arrangement, so that the control circuit board is installed to the housing of the speed reducing arrangement. Then, the circuit board receiving case is installed to the housing of the speed reducing arrangement in such a manner that the circuit board installed to the housing of the speed reducing arrangement is received into the circuit board receiving case through an opening of the circuit board receiving case. Therefore, the control circuit board and the circuit board receiving case are both installed to the housing of the speed reducing arrangement. In this way, the connector of the circuit board is connected to the connector of the speed reducing arrangement before installation of the control circuit board into the circuit board receiving case, and thereby it is possible to visually check the connection between these connectors.

However, at the time of installation of the control device or at the time of replacing the control circuit board, the circuit board receiving case is installed or removed relative to the housing of the speed reducing arrangement while the control circuit board is still connected to the housing of the speed reducing arrangement. Here, the control circuit board is supported relative to the housing of the speed reducing arrangement only by the connector. Therefore, at the time of installing or removing the circuit board receiving case relative to the housing of the speed reducing arrangement, force, which likely causes substantial movement of the circuit board, can be applied to the control circuit board, and such force is likely concentrated in the connector. This causes damage to the connector.

It is conceivable to connect the control circuit board to the housing of the speed reducing arrangement through another connection to reduce stress applied to the connector. However, at the time of connecting the control circuit board to the housing of the speed reducing arrangement, for example, when torsional stress is applied to the control circuit board, it may cause damage to the control circuit board.

SUMMARY OF THE INVENTION

The present invention addresses the above disadvantages. Thus, it is an objective of the present invention to provide a motor, which includes a control circuit board connected to a gear housing that is, in turn, connected to a motor main body, and which minimizes stress applied to the control circuit board to effectively limit damage to the control circuit board. It is another objective of the present invention to provide a method for manufacturing such a motor.

To address the above objectives, there is provided a motor, which includes a motor main body, a gear housing, a control device and a fixing means. The motor main body includes a rotatable shaft, which is rotated upon energization of the motor main body. The gear housing is joined to the motor main body and receives an output shaft and a speed reducing mechanism. The speed reducing mechanism reduces a rotational speed of the rotatable shaft and conducts the reduced rotational speed of the rotatable shaft to the output shaft, and the gear housing has a main body side connector, from which electric power is supplied to the motor main body. The control device controls the motor main body and includes a control circuit board and a circuit board receiving case. The control circuit board is received in the circuit board receiving case without being directly joined to the circuit board receiving case and has a circuit board side connector. The circuit board side connector is installed to the main body side connector in a first direction to supply electric power to the motor main body through the main body side connector. The circuit board receiving case includes a gear housing side opening that is installed to the gear housing in the first direction to receive the control circuit board in the circuit board receiving case. The fixing means is for releasably fixing the control circuit board to the gear housing to prevent movement of the control circuit board relative to the gear housing in a second direction, which is opposite from the first direction.

To achieve the objectives of the present invention, there is also provided a method for manufacturing a motor. In the method, a control circuit board is installed to a gear housing in a first direction such that a circuit board side connector of the control circuit board is electrically connected to a main body side connector of the gear housing. Here, the gear housing is joined to a motor main body. Then, the control circuit board is releasably fixed to the gear housing by a fixing means to prevent movement of the control circuit board relative to the gear housing in a second direction, which is opposite from the first direction. Thereafter, a circuit board receiving case is installed to the gear housing in the first direction such that a gear housing side opening of the circuit board receiving case is connected to the gear housing to receive the control circuit board into the circuit board receiving case through the gear housing side opening of the circuit board receiving case.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention, together with additional objectives, features and advantages thereof, will be best understood from the following description, the appended claims and the accompanying drawings in which:

FIG. 1 is a plan view of a motor according to an embodiment of the present invention;

FIG. 2 is a bottom view of the motor of the embodiment;

FIG. 3 is a partially fragmented side view of the motor of the embodiment;

FIG. 4 is a cross sectional view of the motor of the embodiment;

FIG. 5 is a deployed plan view of the motor of the embodiment;

FIG. 6 is a partially fragmented, deployed side view of the motor of the embodiment;

FIG. 7 is a deployed plan view of the motor of the embodiment;

FIG. 8 is a partially fragmented, deployed side view of the motor of the embodiment;

FIG. 9 is a deployed plan view showing a modification of the motor of the embodiment; and

FIG. 10 is a cross sectional view showing another modification of the motor of the embodiment.

DETAILED DESCRIPTION OF THE INVENTION

An embodiment of the present invention will be described with reference to the accompanying drawings.

With reference to FIGS. 1 to 8, a motor 1 according to the present embodiment is used as a drive source of a vehicle sunroof system and includes a motor main body 2, a speed reducing arrangement 3 and a control device 4, which are assembled together.

The motor main body 2 includes a yoke housing 5, which is made of a magnetic metal material and is formed into a cup shape. Magnets (not shown) are secured to an inner peripheral surface of the yoke housing 5. An armature 6 is rotatably received in the yoke housing 5 at a location radially inward of the magnets. The armature 6 includes a rotatable shaft 7, to which a commutator 8 is secured. The rotatable shaft 7 is inserted into a gear housing 10 of the speed reducing arrangement 3. The motor main body 2 (the yoke housing 5) is installed to the gear housing 10 in a direction parallel to an axis L1 of the rotatable shaft 7. The motor main body 2 and the gear housing 10 are connected together by a plurality of screws 9.

The gear housing 10 is made of a resin material. The gear housing 10 includes a rotatable shaft receiving portion 10 a and a worm wheel receiving portion (a speed reducing mechanism receiving portion) 10 b. The rotatable shaft receiving portion 10 a receives the rotatable shaft 7, and the worm wheel receiving portion 10 b receives a worm wheel (a speed reducing mechanism) 11. The gear housing 10 is generally flattened, so that the worm wheel receiving portion 10 b extends from the rotatable shaft receiving portion 10 a in one direction (a right direction in FIG. 1) that is perpendicular to the rotatable shaft receiving portion 10 a (perpendicular to the axis L1 of the rotatable shaft 7). A plane of flattening of the flattened gear housing 10 is also a plane of flattening of the flattened motor 1.

The rotatable shaft 7 is rotatably received in the rotatable shaft receiving portion 10 a. A worm 7 a is integrally formed in the rotatable shaft 7.

The worm wheel 11 is rotatably received in the worm wheel receiving portion 10 b. The worm wheel 11 is meshed with the worm 7 a of the rotatable shaft 7. An output shaft 12 is integrally rotatably connected to the worm wheel 11. The output shaft 12 drives the sunroof system. Upon receiving the worm wheel 11, the worm wheel receiving portion 10 b is closed by a cover 20, which is secured to the gear housing 10 by a plurality of screws 21.

The output shaft 12 has a connection hole 12 a at a center of a distal end of the output shaft 12. The connection hole 12 a has two opposed flat inner walls, which are parallel to one another, to receive a tool (not shown) into the connection hole 12 a. At the time of a failure of the motor 1, when the output shaft 12 needs to be rotated, the tool is connected to the connection hole 12 a of the output shaft 12 and is rotated to rotate the output shaft 12 to manually operate the sunroof system.

A fitting joint 10 d is formed in the gear housing 10 at a location, which is on a worm wheel receiving portion 10 b side of the rotatable shaft receiving portion 10 a and is also a motor main body 2 side of the worm wheel receiving portion 10 b. A circuit board receiving case 16 is fitted to, i.e., is installed to the fitting joint 10 d in a direction parallel to the axis L1 of the rotatable shaft 7. The fitting joint 10 d extends parallel to the axis L1 of the rotatable shaft 7 and is formed as a hollow body that has a hollow interior and a horse shoe shaped cross section without a side wall on a motor main body 2 side (FIG. 4) of the fitting joint 10 d. Two rattling limiting protrusions 10 e extend parallel to the axis L1 of the rotatable shaft 7 along an outer surface of an upper wall of the fitting joint 10 d in FIG. 4.

A pin receiving through hole 10 g penetrates through a center of a distal end of the upper wall of the fitting joint 10 d (FIGS. 3-5). The pin receiving through hole 10 g is formed in the wall of the gear housing 10 at a corresponding location, which is opposed to and is aligned with a fixing hole (a fixing portion) 15 b of a control circuit board 15 in a direction perpendicular to an installation direction (the direction parallel to the axis L1 of the rotatable shaft 7) of the control circuit board 15 upon installation of the control circuit board 15 to the gear housing 10. A fixing pin 22 is inserted into the pin receiving through hole 10 g from the outside to the inside of the fitting joint 10 d in the direction perpendicular to the installation direction of the control circuit board 15.

The fixing pin 22 includes a pin main body 22 a and a removal limiting portion 22 b. The pin main body 22 a is formed into a cylindrical shape, and the removal limiting portion 22 b extends radially outward from a base end of the pin main body 22 a and has a circular shape. A distal end of the pin main body 22 a, which is opposite from the base end of the pin main body 22 a, is inserted into the pin receiving through hole 10 g until the removal limiting portion 22 b engages an upper surface of the upper wall of the fitting joint 10 d in FIG. 4. In a state where the control circuit board 15 is installed to the gear housing 10, i.e., in a state where the main body side connector 13 is electrically connected to the circuit board side connector 18, the distal end of the fixing pin 22 (the pin main body 22 a) is received in the fixing hole 15 b of the control circuit board 15, which penetrates through the wall of the control circuit board 15. The fixing pin 22 is engaged with the control circuit board 15 in a direction perpendicular to the inserting direction of the fixing pin 22 to limit movement of the control circuit board 15. Furthermore, an upper surface of the removal limiting portion 22 b of the fixing pin 22 is received in the circuit board receiving case 16 fitted to the fitting joint 10 d and is placed adjacent to an inner surface of the circuit board receiving case 16 to engage with the inner surface of the circuit board receiving case 16. More specifically, the circuit board receiving case 16 limits removal of the fixing pin 22 from the fitting joint 10 d (the pin receiving through hole 10 g) and maintains the engaged state of the fixing pin 22 relative to the control circuit board 15.

A widthwise center of a base end of an outer surface of each of the upper wall and the lower wall of the fitting joint 10 d includes an anchoring projection 10 h (FIG. 3). Each anchoring projection 10 h is engaged with, i.e., is snap fitted to a corresponding one of anchoring pieces 16 d of the circuit board receiving case 16 to limit removal of the circuit board receiving case 16 from the fitting joint 10 d.

The main body side connector 13 is received in the fitting joint 10 d. The main body side connector 13 is formed integrally with a brush holder (not shown), which holds power supply brushes (not shown) that are in sliding engagement with the commutator 8. The brush holder, which holds the power supply brushes, can be similar to a brush holder recited in, for example, U.S. Pat. No. 6,710,484, the disclosure of which is entirely incorporated herein by reference. Electric power is supplied from the main body side connector 13 to the power supply brushes. An installing direction of the circuit board side connector 18 of the control circuit board 15 relative to the main body side connector 13 is parallel to the direction of the axis L1 of the rotatable shaft 7. When the circuit board side connector 18 is connected to the main body side connector 13, the main body side connector 13 is electrically connected to the control circuit board 15. A vehicle body side connector (not shown), which extends from a vehicle body, is connectable with the main body side connector 13 in some cases. More specifically, in a case where the motor 1 does not require the control circuit board 15, the above arrangement allows direct connection of the vehicle body side connector to the main body side connector 13 to supply electrical power to the motor 1.

A guide groove (a guide portion) 10 f extends along an inner surface of a left wall of the fitting joint 10 d in FIG. 4 in the direction parallel to the axis L1 of the rotatable shaft 7 to guide a portion of the control circuit board 15 inserted into the fitting joint 10 d.

As discussed above, the control device 4 includes the control circuit board 15, which controls the motor main body 2, and the circuit board receiving case 16, which receives the control circuit board 15. The control circuit board 15 is formed into a rectangular shape and has a plurality of electric circuit components 17, which constitute a control circuit and are provided in a wall surface 15 a of the control circuit board 15. The circuit board side connector 18, which is connected to the main body side connector 13, is provided in one longitudinal end of the surface 15 a of the control circuit board 15. The fixing hole 15 b is formed as a circular fixing portion in the control circuit board 15 at a location adjacent to the circuit board side connector 18 to receive the distal end of the fixing pin 22 (the pin main body 22 a). An inner diameter of the fixing hole 15 b is slightly larger than an outer diameter of the fixing pin 22 (the pin main body 22 a). The fixing pin 22 (the pin main body 22 a) is simply inserted into the fixing hole 15 b of the control circuit board 15, so that torsional stress is not substantially generated by the fixing pin 22 (the pin main body 22 a) in the control circuit board 15.

An external connector 19, to which the vehicle body side connector (not shown) can be connected, is provided to the other longitudinal end of the surface 15 a of the control circuit board 15. Specifically, the external connector 19 has a structure similar to that of the main body side connector 13. The control circuit board 15 supplies drive electric power, which is received from the vehicle body side connector through the external connector 19, to the main body side connector 13 from the circuit board side connector 18 through the control circuit formed on the control circuit board 15.

When the circuit board side connector 18 is connected to the main body side connector 13 in the direction parallel to the axis L1 of the rotatable shaft 7, the control circuit board 15 is electrically and mechanically connected to the main body side connector 13 (FIGS. 7 and 8). In this case, the control circuit board 15 is arranged in such a manner that a plane of the control circuit board 15 is parallel to the plane of flattening of the gear housing 10 (the motor 1). Furthermore, in this case, the control circuit board 15 is inserted into and is guided along the guide groove 10 f of the fitting joint 10 d. Next, when the circuit board side connector 18 is connected to the main body side connector 13, the fixing pin 22 (the pin main body 22 a) is inserted into the pin receiving through hole 10 g of the fitting joint 10 d, and the distal end of the fixing pin 22 is inserted into the fixing hole 15 b of the control circuit board 15, as shown in FIGS. 7 and 8. Thus, the control circuit board 15 is engaged with the fixing pin 22 in a direction perpendicular to the inserting direction of the fixing pin 22 to limit movement of the control circuit board 15. In this way, for example, at the time of installing or removing the circuit board receiving case 16 relative to the gear housing 10, even when force, which likely causes substantial movement of the control circuit board 15, is applied to the control circuit board 15, movement of the control circuit board 15 in both the installation direction (first direction) and a removing direction (second direction) opposite from the installation direction is prevented to reduce stress applied to the connection between the main body side connector 13 and the circuit board side connector 18 due to the limitation of the movement of the control circuit board 15 by the fixing pin 22. Upon installation of the fixing pin 22 to the fitting joint 10 d in the inserting direction (third direction), an opening (a gear housing side opening) 16 a of the circuit board receiving case 16 is fitted to the fitting joint 10 d, and the control circuit board 15 is received in the circuit board receiving case 16.

Similar to the gear housing 10, the circuit board receiving case 16 is made of a resin material and is formed into a quadrangular cup shape. The opening 16 a of the circuit board receiving case 16 is fitted to the fitting joint 10 d of the gear housing 10 in the installation direction. At the opening 16 a of the circuit board receiving case 16, the anchoring piece 16 d is provided in each of the widthwise center of the upper wall and the widthwise center of the lower wall of the circuit board receiving case 16. Each anchoring piece 16 d is formed as a quadrangular plate that extends in a plane of the corresponding one of the upper wall and the lower wall of the circuit board receiving case 16 and has resiliency in a direction perpendicular to the plane of the corresponding one of the upper wall and the lower wall of the circuit board receiving case 16. Furthermore, an anchoring through hole (or simply referred to as an anchoring hole) 16 e penetrates through a center of each anchoring piece 16 d to receive the corresponding anchoring projection 10 h of the fitting joint 10 d. When the circuit board receiving case 16 is fitted to the fitting joint 10 d, a distal end of each anchoring piece 16 d first engages a slope of the corresponding anchoring projection 10 h and is then outwardly resiliently deformed by the slope of the corresponding anchoring projection 10 h. When the entire anchoring projection 10 h is received in the anchoring through hole 16 e of the resiliently deformed anchoring piece 16 d, the resiliently deformed anchoring piece 16 d returns to its original shape. Thus, the anchoring piece 16 d is securely engaged with the anchoring projection 10 h. When each anchoring piece 16 d is securely engaged with the corresponding anchoring projection 10 h, the circuit board receiving case 16 is installed to the fitting joint 10 d (the gear housing 10). In this embodiment, as shown in FIGS. 1 and 2, the circuit board receiving case 16 is held in a side by side relationship relative to the motor main body 2 in the plane of flattening of the gear housing 10 in a direction perpendicular to the axis L1 of the rotatable shaft 7 on a worm wheel receiving portion 10 b side of the axis L1 of the rotatable shaft 7.

At the quadrangular tubular portion of the circuit board receiving case 16, a side wall of the circuit board receiving case 16, which is located adjacent to the motor main body 2, extends in a direction parallel to the axis L1 of the rotatable shaft 7 along an imaginary extension of an axis of the adjacent screw 9, which is used to secure the motor main body 2 to the gear housing 10. More specifically, the side wall, which is located adjacent to the motor main body 2, is eliminated from the distal end of the opening 16 a, so that the distal end of the opening 16 a of the circuit board receiving case 16 has a horse shoe shaped cross section or a U-shaped cross section, as shown in FIG. 4. Thus, with this arrangement, it is possible to avoid interference between the distal end of the opening 16 a of the circuit board receiving case 16 and the screw 9, which is used to secure the motor main body 2 (the yoke housing 5) to the gear housing 10. In other words, with this arrangement, the circuit board receiving case 16 can be positioned in close proximity to the motor main body 2, so that a size of the motor 1 can be reduced in the widthwise direction (the direction perpendicular to the direction of the axis L1) of the motor 1.

As shown in FIGS. 6 and 8, guide grooves 16 b extend along left and right inner side wail surfaces, respectively, of the circuit board receiving case 16 from the opening 16 a of the circuit board receiving case 16 in the direction parallel to the axis L1 of the rotatable shaft 7 to guide the control circuit board 15. In FIGS. 6 and 8, only one of the guide grooves 16 b, which are formed in the left and right inner side wall surfaces, respectively, of the circuit board receiving case 16, is shown. The guide grooves 16 b and the guide groove 10 f cooperate together to guide the control circuit board 15 and limit movement of the control circuit board 15 in a thickness direction (the vertical direction in FIG. 4) of the control circuit board 15, i.e., in a direction perpendicular to the plane of the wall of the control circuit board 15. A receiving through bole 16 c penetrates through a base end wall (a wall located on a side opposite from the opening 16 a) of the circuit board receiving case 16. The external connector 19 of the control circuit board 15 is received through the receiving through hole 16 c to dispose the external connector 19 at the outside of the circuit board receiving case 16.

Upon installation of the control circuit board 15 to the gear housing 10 by connecting the circuit board side connector 18 of the control circuit board 15 to the main body side connector 13 and by inserting the fixing pin 22 into the through hole 15 b of the control circuit board 15, the circuit board receiving case 16 is installed to the gear housing 10 in the direction parallel to the axis L1 of the rotatable shaft 7 in such a manner that the control circuit board 15 is received from the opening 16 a of the circuit board receiving case 16 and is guided along the guide grooves 16 b, and the opening 16 a of the circuit board receiving case 16 is fitted to the fitting joint 10 d. That is, the circuit board receiving case 16 is installed to the gear housing 10 in the direction that coincides with the installation direction of the motor main body 2 relative to the gear housing 10. When the circuit board receiving case 16 is fitted to the fitting joint 10 d, the circuit board receiving case 16 is press fitted relative to the fitting joint 10 d by the rattling limiting protrusions 10 e provided in the fitting joint 10 d. Thus, rattling movement of the circuit board receiving case 16 relative to the fitting joint 10 d is limited. Furthermore, the fixing pin 22, which is installed to the fitting joint 10 d, is also received in the circuit board receiving case 16 and engages the inner surface of the circuit board receiving case 16 to limit unintentional removal of the fixing pin 22 from the fitting joint 10 d (the pin receiving through hole 10 g) and to maintain the engagement between the fixing pin 22 and the control circuit board 15. In this way, the control device 4, which includes the control circuit board 15 and the circuit board receiving case 16, is externally connected to the gear housing 10 to form the motor 1.

When replacement of the control circuit board 15 is required, the anchoring pieces 16 d of the circuit board receiving case 16 are outwardly flexed to release engagement between the anchoring pieces 16 d and the anchoring projections 10 h, and the circuit board receiving case 16 is removed from the gear housing 10 in the removing direction, which is opposite from the installation direction. Next, the fixing pin 22 is removed, and the control circuit board 15 is removed from the main body side connector 13. In this way, replacement of the control circuit board 15 is eased.

Next, characteristic operation of the motor 1 of the present embodiment will be described.

(1) Upon installation of the control circuit board 15 to the gear housing 10 by connecting the circuit board side connector 18 to the main body side connector 13 of the gear housing 10, the fixing pin 22 is installed to the gear housing 10 and is inserted into the fixing hole 15 b of the control circuit board 15 to limit movement of the control circuit board 15. Then, the control circuit board receiving case 16 is installed to the gear housing 10 while the fixing pin 22 is installed to the control circuit board 15. In this way, at the time of installing or removing the circuit board receiving case 16 relative to the gear housing 10, when force, which likely causes substantial movement of the control circuit board 15, is applied to the control circuit board 15, movement of the control circuit board 15 is substantially limited by the fixing pin 22, and thereby stress applied to the connection between the main body side connector 13 and the circuit board side connector 18 is reduced. Thus, even when the force, which likely causes substantial movement of the control circuit board 15, is applied to the control circuit board 15, damage to the control circuit board 15 can be effectively limited. Furthermore, the fixing pin 22 is simply inserted into the fixing hole 15 b of the control circuit board 15, so that, for example, torsional stress is not generated in the control circuit board 15. Thus, damage to the control circuit board 15 is further effectively limited.

(2) The pin receiving through hole 10 g is formed in the gear housing 10 at the corresponding location, which is opposed to and is aligned with the fixing hole 15 b of the control circuit board 15 in the direction perpendicular to the installation direction (the direction of the axis L1) of the control circuit board 15. The fixing pin 22, which is engaged with the control circuit board 15, includes the pin main body 22 a and the removal limiting portion 22 b. The pin main body 22 a is inserted into the fixing hole 15 b, and the removal limiting portion 22 b extends radially outward from the base end of the pin main body 22 a. The fixing pin 22 is installed to the gear housing 10 (the fitting joint 10 d) in the direction perpendicular to the installation direction of the control circuit board 15 in such a manner that the pin main body 22 a is inserted into the pin receiving through hole 10 g until the removal limiting portion 22 b engages the gear housing 10 (the fitting joint 10 d). In this way, the control circuit board 15 is held by the simple fixing pin 22, and manufacturing of such simple fixing pin 22 (a fixing means) is relatively easy. Furthermore, the fixing pin 22 is simply inserted into the pin receiving through hole 10 g of the gear housing 10, so that installation of the fixing pin 22 is relatively simple.

(3) The fixing pin 22 is received in the circuit board receiving case 16, and the removal limiting portion 22 b engages the inner surface of the circuit board receiving case 16, so that removal of the fixing pin 22 from the pin receiving thorough hole 10 g is limited. Thus, a dedicated means for limiting removal of the fixing pin 22 from the pin receiving through hole 10 g is not required.

(4) The gear housing 10 includes the fitting joint 10 d, which is fitted into the opening 16 a of the circuit board receiving case 16. Thus, the gear housing 10 and the circuit board receiving case 16 can be securely connected together by fitting the fitting joint 10 d of the gear housing 10 into the circuit board receiving case 16.

(5) The fitting joint 10 d has the hollow interior, and the main body side connector 13 is arranged in the hollow interior of the fitting joint 10 d. Thus, a space occupied by the fitting joint 10 d and the main body side connector 13 can be minimized. This allows a reduction in a size of the gear housing 10 and thereby a reduction in a size of the entire motor 1.

(6) The portion of the control circuit board 15 is inserted into the fitting joint 10 d, and the guide groove 10 f is provided in the fitting joint 10 d to guide the portion of the control circuit board 15. Thus, unnecessary movement of the control circuit board 15 is limited by the guide groove 10 f, so that substantial rattling movement of the control circuit board 15 is limited.

(7) The rattling limiting protrusions 10 e are formed in the outer surface of the fitting joint 10 d to aid in the press fitting of the fitting joint 10 d to the opening 16 a of the circuit board receiving case 16. With this arrangement, the fitting joint 10 d is press fitted into the opening 16 a of the circuit board receiving case 16, and thereby the circuit board receiving case 16 is installed to the gear housing 10 without causing rattling movement of the circuit board receiving case 16 relative to the gear housing 10.

(8) The circuit board receiving case 16 includes the guide grooves 16 b, which are formed in the left and right inner side wall surfaces of the circuit board receiving case 16 to guide the control circuit board 15 inserted into the circuit board receiving case 16 from the opening 16 a. Thus, unnecessary movement of the control circuit board 15 is limited by the guide grooves 16 b, and thereby substantial rattling movement of the control circuit board 15 is limited.

(9) The circuit board receiving case 16 is held in a side by side relationship relative to the motor main body 2 in the plane of flattening of the gear housing 10 in the direction perpendicular to the rotatable shaft 7 on the worm wheel receiving portion 10 b side of the rotatable shaft 7. Thus, protrusion of the circuit board receiving case 16 in the direction perpendicular to the plane of flattening of the gear housing 10 (the motor 1) is minimized, and the circuit board receiving case 16 is arranged in a space, which is bounded on the motor main body 2 and the gear housing 10 (the worm wheel receiving portion 10 b). As a result, a size of the motor 1 is minimized.

(10) The motor main body 2 is installed to the gear housing 10 in the direction parallel to the axis L1 of the rotatable shaft 7, and the circuit board receiving case 16 is installed to the gear housing in the direction that coincides with the installation direction of the motor main body 2 to the gear housing 10. Thus, the installation direction of the motor main body 2 and the installation direction of the circuit board receiving case 16 coincide with each other, allowing easy assembly of the motor 1. As a result, the motor 1 is suitable for automatic assembly.

The above embodiment can be modified as follows.

In the above embodiment, the fixing hole 15 b, which has the circular cross section, is formed in the control circuit board 15 to serve as the fixing portion, which receives and engages the fixing pin 22. However, the shape of the fixing portion and the position of the fixing portion are not limited to the above ones. For example, as shown in FIG. 9, a fixing recess 15 c can be provided in the control circuit board 15 in place of the fixing hole 15 b. The recess 15 c extends in a direction perpendicular to the inserting direction of the control circuit board 15. Further alternatively, as shown in FIG. 10, a fixing groove 18 a can be formed in the circuit board side connector 18, which is mounted to the control circuit board 15. Furthermore, two or more of the fixing hole 15 b, the fixing recess 15 c and the fixing groove 18 a can be provided in any appropriate combination.

In the above embodiment, the fixing pin 22, which includes the pin main body 22 a and the removal limiting portion 22 b, is inserted into the pin receiving through hole 10 g of the fitting joint 10 d, and the pin main body 22 is inserted into the fixing hole 15 b of the control circuit board 15 to limit movement of the control circuit board 15. However, the present invention is not limited to this arrangement, and this arrangement can be modified in any appropriate manner.

In the above embodiment, the fixing pin 22 is received in the circuit board receiving case 16, and the removal limiting portion 22 b engages the inner surface of the circuit board receiving case 16 to limit removal of the fixing pin 22 from the pin receiving through hole 10 g. Alternatively, any other measure can be used to limit removal of the fixing pin 22.

In the above embodiment, the circuit board receiving case 16 is installed to the gear housing 10 through engagement of the anchoring pieces 16 d of the circuit board receiving case 16 with the anchoring projections 10 h of the gear housing 10. Alternatively, any other measure can be taken to install the circuit board receiving case 16 to the gear housing 10.

In the above embodiment, the fitting joint 10 d is provided in the gear housing 10 and is fitted into the opening 16 a of the circuit board receiving case 16. The shape of the fitting joint 10 d is not limited to the above one. Furthermore, the fitting joint 10 d can be eliminated, if desired.

In the above embodiment, the shape of each rattling limiting protrusion 10 e is not limited to the above one and can be changed to any suitable one. Furthermore, the rattling limiting protrusions 10 e can be eliminated, if desired.

In the above embodiment, the shape of each guide groove 10 f, 16 b is not limited to the above one and can be modified in any appropriate manner. Furthermore, the guide grooves 10 f, 16 b can be eliminated.

In the above embodiment, the circuit board receiving case 16 is installed to the gear housing 10 in the direction parallel to the axis L1 of the rotatable shaft 7. However, the circuit board receiving case 16 can be installed to the gear housing 10 in any other direction.

In the above embodiment, the circuit board receiving case 16 is held in a side by side relationship relative to the motor main body 2 in the direction perpendicular to the rotatable shaft 7. However, the circuit board receiving case 16 can be arranged in any other appropriate manner.

In the above embodiment, the present invention is embodied in the motor 1 (the power source) of the vehicle sunroof system. However, the present invention can be embodied in a motor of any other system or device.

Additional advantages and modifications will readily occur to those skilled in the art. The invention in its broader terms is therefore not limited to the specific details, representative apparatus, and illustrative examples shown and described. 

1. A method for manufacturing a motor, the method comprising: installing a gear of a speed reducing mechanism into a gear housing; installing a control circuit board, which has an external connector adapted to be directly, detachably connectable with a separate connector outside of the motor to receive electrical power, to the gear housing in a first direction such that a circuit board side connector of the control circuit board is electrically connected to a main body side connector for the first time at the time of installing the control circuit board to the gear housing, wherein the gear housing is joined to a motor main body, and wherein the main body side connector is attached to the gear housing; releasably fixing the control circuit board to the gear housing by a fixing means to prevent movement of the control circuit board relative to the gear housing in a second direction, which is opposite from the first direction; and installing a circuit board receiving case to the gear housing in the first direction after the installing of the control circuit board to the gear housing such that a gear housing side opening of the circuit board receiving case is connected to the gear housing to receive the control circuit board into the circuit board receiving case through the gear housing side opening of the circuit board receiving case, wherein the installing of the circuit board receiving case to the gear housing is performed such that the external connector of the control circuit board sticks out of an external connector opening in the circuit board receiving case in the second direction.
 2. The method according to claim 1, wherein the releasably fixing of the control circuit board to the gear housing by the fixing means also prevents movement of the control circuit board relative to the gear housing in the first direction.
 3. The method according to claim 1, wherein the first direction is parallel to an axis of a rotatable shaft of the motor main body.
 4. The method according to claim 1, wherein the installing of the circuit board receiving case to the gear housing includes snap fitting the gear housing side opening of the circuit board receiving case to the gear housing.
 5. The method according to claim 1, wherein the installing of the circuit board receiving case to the gear housing includes receiving the fixing means into the circuit board receiving case such that an inner surface of the circuit board receiving case engages the fixing means to limit removal of the fixing means from inside of the circuit board receiving case.
 6. The method according to claim 1, wherein: the fixing means includes a fixing pin; the releasably fixing of the control circuit board to the gear housing by the fixing means includes installing a pin main body of the fixing pin to a fixing portion of the control circuit board through a pin receiving through hole formed through a wall of the gear housing, so that a removal limiting portion of the fixing pin engages the wall of the gear housing around the pin receiving through hole of the gear housing; and the installing of the pin main body of the fixing pin to the fixing portion of the control circuit board through the pin receiving through hole is performed in a third direction substantially perpendicular to the first direction.
 7. The method according to claim 1, wherein the installing of the circuit board receiving case includes installing the circuit board receiving case to the gear housing such that the circuit board receiving case substantially surrounds the control circuit board so as to encase the control circuit board.
 8. The method according to claim 1, wherein the motor main body comprises a yoke housing, which receives an armature. 